const initState={
    taskList:[]
}

export default function TaskReducer(state=initState,action){
    switch (action.type){
        case "LOAD_TASK_SUCCESS":
            return Object.assign({},state,{
                taskList:action.taskList
            })
        default:
            return state
    }
}